package com.hkts.naturalgas.association.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author yck
 * @since 2023-02-26
 */
public class HktsRequestAddressAssociation extends Model<HktsRequestAddressAssociation> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 链接地址
     */
    private String url;
    /**
     * 账号
     */
    private String username;
    /**
     * 密码
     */
    private String password;
    /**
     * 字典表id
     */
    private String tableId;
    /**
     * 1是正常，2是失效
     */
    private String urlState;
    /**
     * 链接失效时间
     */
    private LocalDateTime invalidTime;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getTableId() {
        return tableId;
    }

    public void setTableId(String tableId) {
        this.tableId = tableId;
    }

    public String getUrlState() {
        return urlState;
    }

    public void setUrlState(String urlState) {
        this.urlState = urlState;
    }

    public LocalDateTime getInvalidTime() {
        return invalidTime;
    }

    public void setInvalidTime(LocalDateTime invalidTime) {
        this.invalidTime = invalidTime;
    }

    public static final String ID = "id";

    public static final String URL = "url";

    public static final String USERNAME = "username";

    public static final String PASSWORD = "password";

    public static final String TABLE_ID = "table_id";

    public static final String URL_STATE = "url_state";

    public static final String INVALID_TIME = "invalid_time";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "HktsRequestAddressAssociation{" +
                ", id=" + id +
                ", url=" + url +
                ", username=" + username +
                ", password=" + password +
                ", tableId=" + tableId +
                ", urlState=" + urlState +
                ", invalidTime=" + invalidTime +
                "}";
    }
}
